//
//  Timer+Extension.swift
//  DoctorEPlus
//
//  Created by 王林波 on 2020/11/17.
//

import Foundation
import UIKit

extension Timer {
    func pause()  {
        self.fireDate = Date.distantFuture
    }
    
    func start(_ timeValue: TimeInterval) {
        self.fireDate = Date.init(timeIntervalSinceNow: timeValue)
    }
}
